﻿<%@ Page Language="C#" Theme="skin_control" AutoEventWireup="true" CodeFile="DraftQuarterPlan.aspx.cs"
    Inherits="QuarterPlan_DraftQuarterPlan" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>待发年计划</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                    <td class="firstbjcolor" colspan="4" style="height: 14px;">
                        <span class="currentHere">当前位置:年计划管理-&gt;待发部门年计划</span></td>
                </tr>
                <tr>
                    <td style="height: 1; width: 100%;">
                    </td>
                </tr>
                <tr>
                    <td colspan="8" style="background-image: url(../images/secondRow.gif); background-repeat: repeat-x;
                        height: 30px;">
                        部门:<asp:DropDownList ID="drpDepartment" runat="server" SkinID="dropdownlistSkin"
                            AutoPostBack="True" OnSelectedIndexChanged="drpDepartment_SelectedIndexChanged">
                        </asp:DropDownList>年份:<asp:DropDownList ID="drpYear" runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="drpYear_SelectedIndexChanged" SkinID="dropdownlistSkin">
                        </asp:DropDownList>年周期:<asp:DropDownList ID="drpQuarterDate" runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="drpQuarterDate_SelectedIndexChanged" SkinID="dropdownlistSkin">
                        </asp:DropDownList>
                        &nbsp;<asp:CheckBox ID="ckbAllSelect" runat="server" OnCheckedChanged="ckbAllSelect_CheckedChanged"
                            Text="全选" AutoPostBack="True" SkinID="checkboxSkin" />
                        <asp:Button ID="btnDel" runat="server" Text="删除" OnClick="btnDel_Click" SkinID="buttonSkin"
                            OnClientClick="return confirm('确认要删除吗？');" />
                        <asp:Button ID="btnQuarterResolve" runat="server" OnClick="btnQuarterResolve_Click"
                            Text="分解" SkinID="buttonSkin" />
                        <asp:Button ID="btnModify" runat="server" OnClick="btnModify_Click" SkinID="buttonSkin"
                            Text="修改" />
                        <asp:Button ID="btnOk" runat="server" OnClick="btnOk_Click" Text="立即提交" Width="60px"
                            SkinID="buttonSkin" OnClientClick="return confirm('确认要提交吗？');" />
                        <asp:Button ID="btnAttachmentPath" runat="server" OnClick="btnAttachmentPath_Click"
                            Text="上传文件" Width="60px" SkinID="buttonSkin" /></td>
                </tr>
                <tr>
                    <td colspan="8">
                        <div style=" height: 18px; width: 98.4%" id="Div1">
                            <table cellpadding="0" cellspacing="1" style="background-color: #d0d0ce;" border="0"
                                width="100%">
                                <tr style="background-color: #ffffff;">
                                    <td class="PlanModifyTableHeader" style="width: 3%" align="center">
                                        选择</td>
                                    <td class="PlanModifyTableHeader" style="width: 4%" valign="middle" align="center">
                                        计划编号</td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 8%">
                                        开始时间</td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 8%">
                                        完成时间</td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 8%">
                                        计划来源</td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 12%">
                                        计划名称</td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 7%">
                                        责任部门</td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 5%">
                                        责任人<a href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"></a></td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 7%">
                                        配合部门<a href="#" onclick="javascript:slavedepartment(parentNode.firstChild.id );"></a></td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 8%">
                                        配合部门责任</td>
                                    <td class="PlanModifyTableHeader" valign="middle" style="width: 5%" align="center">
                                        评估人<a href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"></a></td>
                                    <td class="PlanModifyTableHeader" valign="middle" style="width: 7%" align="center">
                                        评估意见</td>
                                    <td class="PlanModifyTableHeader" style="width: 6%" valign="middle" align="center">
                                        备注</td>
                                    <td align="center" class="PlanModifyTableHeader" style="width: 6%" valign="middle">
                                        附件</td>
                                    <td align="center" class="PlanModifyTableHeader" style="width: 6%" valign="middle">
                                        查看分解</td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="8">
                        <div style="overflow-y: scroll; height: 500px; width: 100%" id="dvBody">
                            <asp:GridView ID="gdvQuarterPlan" runat="server" AutoGenerateColumns="False" Width="98.4%"
                                OnPageIndexChanging="gdvQuarterPlan_PageIndexChanging" DataKeyNames="AttachmentPath,QuarterPlanId,Source,TotalPlanId"
                                SkinID="gridviewSkin" ShowHeader="False">
                                <Columns>
                                    <asp:TemplateField HeaderText="选择">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="ckbSelect" runat="server" SkinID="checkboxSkin" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="3%" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="3%" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="QuarterPlanSortId" HeaderText="计划编号">
                                        <HeaderStyle Wrap="False" Width="4%" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle Width="4%" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="StartTime" HeaderText="开始时间" DataFormatString="{0:yyyy-MM-dd}"
                                        HtmlEncode="False">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="False" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="CompleteTime" HeaderText="完成时间" DataFormatString="{0:yyyy-MM-dd}"
                                        HtmlEncode="False">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="False" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="计划来源">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="False" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="8%" Wrap="True" />
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lbtnSource" runat="server" OnClick="lbtnSource_Click"></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="WorkItem" HeaderText="计划名称">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="12%" Wrap="False" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="12%" Wrap="True" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="MasterDepartment" HeaderText="责任部门">
                                        <HeaderStyle Width="7%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle Width="7%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="MasterPeople" HeaderText="责任人">
                                        <HeaderStyle Width="5%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle Width="5%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="SlaveDepartment" HeaderText="配合部门">
                                        <HeaderStyle Width="7%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle Width="7%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="SlaveDepartmentDuty" HeaderText="配合部门责任">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="False" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="8%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="EvaluatePeople" HeaderText="评估人">
                                        <HeaderStyle Width="5%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle Width="5%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="CheckNote" HeaderText="评估意见">
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="7%" Wrap="True" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="7%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Remart" HeaderText="备注">
                                        <HeaderStyle Width="6%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle Width="6%" HorizontalAlign="Left" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="AttachmentPath" HeaderText="文件保存路径" Visible="False">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="附件">
                                        <ItemTemplate>
                                            <asp:Button ID="btnDownLoad" runat="server" OnClick="btnDownLoad_Click" Text="下载"
                                                SkinID="buttonSkin" />
                                            <asp:Label ID="lblAlert" runat="server" Visible="False" SkinID="labelSkin"></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="6%" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="6%" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="查看">
                                        <ItemTemplate>
                                            <asp:Button ID="btnQuarterPlanResolve" runat="server" Text="查看" OnClick="btnQuarterPlanResolve_Click"
                                                Width="90%" SkinID="buttonSkin" /><br />
                                            <asp:Label ID="lblTopic" runat="server" Text="无年分解" Visible="False" SkinID="labelSkin"></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="6%" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="6%" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="QuarterPlanId" HeaderText="ID" Visible="False">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="0px" />
                                        <ItemStyle Width="0px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="TotalPlanId" HeaderText="TotalPlanId" Visible="False" />
                                    <asp:BoundField DataField="Source" HeaderText="Source" Visible="False" />
                                </Columns>
                            </asp:GridView>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
